using Pay.TO;
using System;

namespace Pay.Data
{
	/// <summary>
	/// 广告表
	/// </summary>
	[Serializable]
	public class Advertisement
	{
		/// <summary>
		/// 广告Id
		/// [主键：√]
		/// [长度：19]
		/// [不允许为空]
		/// </summary>
		public long Id { get; set; }

		/// <summary>
		/// 位置类型
		/// [长度：10]
		/// [不允许为空]
		/// </summary>
		public EAdvertisementPositionType PositionType { get; set; }

		/// <summary>
		/// 排序
		/// [长度：10]
		/// [不允许为空]
		/// </summary>
		public int Sort { get; set; }

		/// <summary>
		/// 图片URL
		/// [长度：200]
		/// [不允许为空]
		/// </summary>
		public string ImgUrl { get; set; }

		/// <summary>
		/// 链接地址
		/// [长度：500]
		/// </summary>
		public string LinkUrl { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 副标题
        /// </summary>
        public string Subtitle { get; set; }
        /// <summary>
        /// 备注
        /// [长度：500]
        /// </summary>
        public string Content { get; set; }

		/// <summary>
		/// 状态（1：正常，2：停用）
		/// [长度：10]
		/// [不允许为空]
		/// </summary>
		public EAdvertisementStatus Status { get; set; }

		/// <summary>
		/// 点击次数
		/// [长度：10]
		/// [不允许为空]
		/// </summary>
		public int ClickNum { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime BeginTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

		/// <summary>
		/// 创建时间
		/// [长度：23，小数位数：3]
		/// [不允许为空]
		/// </summary>
		public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否在AppStore版本中显示
        /// </summary>
        public bool IsAppStoreShow { get; set; }

    }
}
